<!DOCTYPE html>
<html lang="">

	<head>
		<meta charset="UTF-8">
		<link rel="icon" href="./favicon.ico">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<title>视频截图</title>
		<style>
			/* 确保 html 和 body 占满视口 */
			html,
			body {
				margin: 0;
				padding: 0;
				width: 100%;
				height: 100%;
				overflow: hidden;
				/* 防止滚动条 */
			}

			/* 设置 iframe 占满父容器 */
			iframe {
				width: 100%;
				height: 100%;
				border: none;
				/* 移除边框 */
			}
		</style>
	</head>

	<body>
		<iframe id="myIframe"></iframe>
		<script type="text/javascript" src="./uni.webview.1.5.6.js"></script>
		<script>
			function CYFUN(t, url) {
				console.log("AIM CYFUN", t)
				uni.postMessage({
					data: {
						action: t,
						url
					}
				});
			}
			setTimeout(() => {
				const iframe = document.getElementById('myIframe');
				iframe.src = "./web/index.html?version=" + Date.now();
			}, 30)
		</script>
	</body>

</html>